The “snd Editor” file included with this document contains a 'snd ' resource editor for ResEdit. As there is no way of displaying the insides of a sound resource with what comes with ResEdit, it is obviously a major improvement. To install it, open up the “snd Editor” file with ResEdit and copy everything in it. Now open either ResEdit itself or preferably (no pun intended) the ResEdit Preferences file in the System Folder and paste the resources in it.
If you were using version 1.0 of the snd Editor, you must remove it from ResEdit, because I changed it’s IDs. If you fail to do this, ResEdit will use the old editor instead of this version. (Sorry for the inconveniance.)
This is a pre-release version I uploaded so you could get an idea of what will be in the final version and so I could start getting bug reports and ideas for new features. There’s not much documentation with this version, but it should be easy enough to explore for yourself. If you have not read the Sound Manager chapter of Inside Mac, I suggest you do so. All the terms and everything will make much more sense.
Most sounds I’ve seen are quite boring, only having a single soundCmd or bufferCmd in them. If you want to see some neat sounds with lots of commands, check out the Example Sounds file included with the editor. It contains some really cool sounds that show many kinds of commands. For the example waveTableCmd sound, try putting a noteCmd after it to hear what it sounds like. Also, you can make up songs using noteCmds after a soundCmd (take a look at Aqua).
The sound editor main window.
The buffer editor main window. The hilited area is the loop.
NOTES!
The Clear, Select All, and Duplicate commands in the Edit menu all work. None of the clipboard commands work with sound commands yet. Try inserting and deleting new commands and playing around with them. Note that any buffer offsets are automatically updated for you! What do you think? BTW, I put asterisks beside the commands that I don’t have any idea what to do with (I know they exist, but don’t know what they do or what parameters they take).
PLANNED ADDITIONS
1. Cut, copy, and paste support for commands and sounds.
2. Referencing buffers by number and not by absolute offset. Currently, changing the size of a sound with an open buffer window will result in garbage displayed in the buffer header.
3. Support for extended and compressed headers. (I need some sounds with these in them for testing purposes…got any?)
4. Changing the scale used to display a buffer.
NEW WITH VERSION 2.0a2
1. The buffer editor can now be resized and scrolled.
2. You can now edit a buffer’s sample rate correctly.
3. Hopefully some of the problems with multiple monitors are fixed.
4. Added support for several commands.
5. Removed some unneccessary commands.
6. Fixed some bugs.
7. Resized the main editor window.
NEW WITH VERSION 2.0a1
1. Complete reorganization of the code. (Making it more efficient and more reliable.)
2. Playing uses asynchronous sound with a dialog.
3. Can edit one (the first) synthesizer in the sound now via a dialog. (I’ve never seen a sound with more than one. Show me a sound that really uses more than one and I’ll change it.)
4. “Revert This Resource” now updates the window correctly.
5. Removed “Try Selection” from the menu. I started adding it, but found that I would not use it much. I’ll put it back if you really want it.
6. Open buffer now opens up a subeditor (See Figure 2) displaying a graphic view of the buffer, including all information in the sound header. I’m going to (It uses a sorta braindead drawing routine. What is the best, fastest, most accurate way of drawing sounds?)
7. Uses error messages for sound errors now.
8. Updates all menus correctly.
9. Verifies the sound when first opened, before playing, and when opening a subeditor. Checks for avalid sound format, number of synthesizers, number of commands, header loops, header formats, header lengths, and if a header’s samplePtr is 0. And it can fix some of those, too.
10. The Note Type popup menu now works correctly. (But I can’t seem to get the actual frequency notes to play right for some reason.)
11. The freqCmds are now edited correctly. (With a Note Type popup menu.)
12. Double clicking on a command that uses a buffer (e.g. bufferCmd) will now open the subeditor.
THANKS
This program is completely free. You may copy and distribute it as much as you want, under two conditions: you always include this readme file, and you may not use it commercially without my permission.
Because this is a pre-release version, don’t be surprised by any bugs - just report them. If you have some more ideas for pickers or editors, bug reports, etc., just send me some sort of mail (email included) telling me what you think about it. Even if you think it's just fine the way it is, or even if you hate it, send me something. What new features do you want in it? Share and enjoy!